// src/i18n.js
import Vue from 'vue'
import VueI18n from 'vue-i18n'

Vue.use(VueI18n)

const messages = {
  en: {
    message: {
      soft_update_0: "1. The software supports offline operation, with all data stored locally.",
      soft_update_1: "2. Added multi-language support, including Simplified Chinese and English.",
      login: 'Login',
      login_tips: 'Remember password',
      device_links_title: "Checking device connections...",
      update_dialog_title: "Notification",
      update_dialog_content: "A new update is available, please download and install",
      update_dialog_cancle: "Cancel",
      update_dialog_confirm: "Confirm",
      down_dialog_title: "Download Progress",

      login_js_device_stutas: "Checking device",
      login_js_login_message: "Username or password cannot be empty",
      login_js_device_connect_tips_success: "Device invoked successfully, connection normal.",
      login_js_device_connect_tips_fail: "Device invocation failed, please check device connection status.",

      home_page_tab_0: "Customer Management",
      home_page_tab_1: "Report List",
      home_page_tab_2: "System Settings",

      add_user_title: "Add New Customer",
      add_user_form_label_name: "Name",
      add_user_form_name_placeholder: "Please enter customer's name",
      add_user_form_label_mobile: "Mobile Number",
      add_user_form_mobile_placeholder: "Please enter customer's mobile number",
      add_user_form_label_birthday: "Date of Birth",
      add_user_form_birthday_placeholder: "Date of Birth",
      add_user_form_label_sex: "Gender",
      add_user_form_sex_placeholder: "Gender",
      add_user_form_label_age: "Age",
      add_user_form_age_placeholder: "Please enter customer's age",
      add_user_form_label_remark: "Remarks",
      add_user_form_remark_placeholder: "Remarks",
      add_user_button_add: "Add Customer",
      add_user_button_edit: "Edit",
      add_user_button_cancle: "Cancel",
      add_user_rules_sex_0: "Male",
      add_user_rules_sex_1: "Female",
      add_user_rules_name: "Please enter username",
      add_user_rules_sex: "Please select gender",
      add_user_rules_mobile: "Please enter mobile number",
      add_user_rules_age: "Please enter age",
      add_user_message_title: "Notification",
      add_user_message_content_1: "Required fields cannot be empty!",
      add_user_message_content_2: "Edit successful",

      photo_list_title: "View and Select Images",
      photo_list_table_name: "Customer Name",
      photo_list_table_sex: "Gender",
      photo_list_table_age: "Age",
      photo_list_table_phone: "Phone",
      photo_list_table_history: "Medical History",
      photo_list_table_list: "Full-body Check",
      photo_list_files_count: "Selected count:",
      photo_list_files_tips: "Note: For [Full-body] automatic image reading, please strictly follow the order to select one full-body front thermal image and one full-body back thermal image",
      photo_list_marster: "Image Collector:",
      photo_list_bottom_preview: "View Images",
      photo_list_bottom_next: "Go Back",
      photo_list_dialod_content_0: "Maximum of 8 images can be selected",
      photo_list_dialod_content_1: "Please select images first",

      report_list_title: "Report List",
      report_list_form_query: "Name/Phone Number Search",
      report_list_form_search: "Search",
      report_list_form_refresh: "Refresh",
      report_list_form_label_member: "No.",
      report_list_form_label_name: "Name",
      report_list_form_label_sex: "Gender",
      report_list_form_label_mobile: "Phone",
      report_list_form_label_age: "Age",
      report_list_form_label_create_time: "Report Generation Time",
      report_list_form_label_nickname: "Image Reader",
      report_list_form_label_remark: "Status",
      report_list_form_label_option: "Action",
      report_list_form_label_del: "Delete",
      report_list_form_label_cm: "TCM Report",
      report_list_form_label_wm: "Western Medicine Report",
      report_list_form_label_food: "Diet Therapy Report",
      report_list_form_label_hm: "Manual Report",
      report_list_pagination_prev: "Previous",
      report_list_pagination_next: "Next",
      report_list_alert_title: "Confirm deletion?",
      report_list_alert_tips: "Notification",
      report_list_alert_confirm: "Confirm",

      user_manager_title: "Customer List",
      user_manager_button: "Add Customer",
      user_manager_form_query: "Name/Phone Number Search",
      user_manager_form_query_search: "Search",
      user_manager_form_query_refresh: "Refresh",

      user_manager_table_id: "No.",
      user_manager_table_name: "Name",
      user_manager_table_gender: "Gender",
      user_manager_table_phone: "Phone",
      user_manager_table_idcard: "ID Card",
      user_manager_table_age: "Age",
      user_manager_table_birth_date: "Date of Birth",
      user_manager_table_created_at: "Registration Time",
      user_manager_table_option: "Action",
      user_manager_table_edit: "Edit",
      user_manager_table_delete: "Delete",
      user_manager_table_camera: "Capture Image",
      user_manager_table_view: "View Images",
      user_manager_table_prev: "Previous",
      user_manager_table_next: "Next",
      user_manager_data_menu_0: "Customer Management",
      user_manager_data_menu_1: "Report List",
      user_manager_data_menu_2: "System Settings",
      user_manager_message_title: "Notification",
      user_manager_message_content: "Deleted successfully!",
      user_manager_alert_title: "Notification",
      user_manager_alert_content: "Confirm deletion?",
      user_manager_alert_confirm: "Confirm",
      user_manager_message_connet_tips: "Checking camera connection",
      user_manager_message_connet_tips_2: "Camera serial number mismatch",

      set_device_title: "Device Type",
      set_use_datasheet: "User Manual",
      set_current_soft_version: "Current Software Version",
      set_new_soft_version: "Latest Software Version",
      set_update_tips: "Update Log",
      set_table_index: "No.",
      set_table_name: "Inspection Item",
      set_table_evaluation: "Infrared Thermal Evaluation Result",
      set_table_evaluation_tips: "Healthcare or Physical Therapy Suggestions",
      set_data_list_0: "Diagnostic Dictionary",
      set_data_list_1: "Posture Configuration",
      set_data_list_2: "Device Parameter Configuration",
      set_data_list_3: "Online Tutorial",
      set_data_list_4: "About",
      set_prompt_title: "Add Diagnostic Result",
      set_prompt_content: "Please enter diagnostic result item",
      set_prompt_confirm: "Confirm",
      set_prompt_cancel: "Cancel",
    }
  },
  zh: {
    message: {
      soft_update_0: "1、软件支持离线运行，全部数据本地化存储",
      soft_update_1: "2、增加多语言，支持简体中文、英语",
      login: '登录',
      login_tips: '记住密码',
      device_links_title: "检查设备连接中...",
      update_dialog_title: "提示",
      update_dialog_content: "检测应用有更新，请下载安装",
      update_dialog_cancle: "取 消",
      update_dialog_confirm: "确 定",
      down_dialog_title: "下载进度提示",

      login_js_device_stutas: "正在检查设备",
      login_js_login_message: "用户名或密码不能为空",
      login_js_device_connect_tips_success: "设备调用成功，连接正常。",
      login_js_device_connect_tips_fail: "设备调用失败，请检查设备连接状态。",

      home_page_tab_0: "客户管理",
      home_page_tab_1: "报告列表",
      home_page_tab_2: "系统设置",

      add_user_title: "添加新客户",
      add_user_form_label_name: "中文姓名",
      add_user_form_name_placeholder: "请输入中文客户姓名",
      add_user_form_label_mobile: "手机号码",
      add_user_form_mobile_placeholder: "请输入客户手机号",
      add_user_form_label_birthday: "出生年月",
      add_user_form_birthday_placeholder: "出生年月",
      add_user_form_label_sex: "性别",
      add_user_form_sex_placeholder: "性别",
      add_user_form_label_age: "年龄",
      add_user_form_age_placeholder: "请输入客户年龄",
      add_user_form_label_remark: "备注",
      add_user_form_remark_placeholder: "备注",
      add_user_button_add: "新增客户",
      add_user_button_edit: "修改",
      add_user_button_cancle: "取消",
      add_user_rules_sex_0: "男",
      add_user_rules_sex_1: "女",
      add_user_rules_name: "请输入用户名",
      add_user_rules_sex: "请选择性别",
      add_user_rules_mobile: "请输入手机号",
      add_user_rules_age: "请输入年龄",
      add_user_message_title: "提示",
      add_user_message_content_1: "必填信息不能为空!",
      add_user_message_content_2: "编辑成功",

      photo_list_title: "阅片选图",
      photo_list_table_name: "客户姓名",
      photo_list_table_sex: "性别",
      photo_list_table_age: "年龄",
      photo_list_table_phone: "手机",
      photo_list_table_history: "既往病史",
      photo_list_table_list: "全身检查",
      photo_list_files_count: "已选张数:",
      photo_list_files_tips: "请注意:[全身]自动阅片请严格按照顺序选择全身正面和全身背面热图各一张",
      photo_list_marster: "采图师：",
      photo_list_bottom_preview: "去阅片",
      photo_list_bottom_next: "返回上一页",
      photo_list_dialod_content_0: "最多只能选择八张图片",
      photo_list_dialod_content_1: "请先选择图片",

      report_list_title: "报告列表",
      report_list_form_query: "姓名/手机号查询",
      report_list_form_search: "搜索",
      report_list_form_refresh: "刷新",
      report_list_form_label_member: "序号",
      report_list_form_label_name: "姓名",
      report_list_form_label_sex: "性别",
      report_list_form_label_mobile: "手机",
      report_list_form_label_age: "年龄",
      report_list_form_label_create_time: "报告生成时间",
      report_list_form_label_nickname: "阅片师",
      report_list_form_label_remark: "状态",
      report_list_form_label_option: "操作",
      report_list_form_label_del: "删除",
      report_list_form_label_cm: "中医报告",
      report_list_form_label_wm: "西医报告",
      report_list_form_label_food: "食疗报告",
      report_list_form_label_hm: "人工报告",
      report_list_pagination_prev: "上一页",
      report_list_pagination_next: "下一页",
      report_list_alert_title: "是否要删除?",
      report_list_alert_tips: "提示",
      report_list_alert_confirm: "确定",

      user_manager_title: "客户列表",
      user_manager_button: "添加客户",
      user_manager_form_query: "姓名/手机号查询",
      user_manager_form_query_search: "搜索",
      user_manager_form_query_refresh: "刷新",

      user_manager_table_id: "序号",
      user_manager_table_name: "姓名",
      user_manager_table_gender: "性别",
      user_manager_table_phone: "手机",
      user_manager_table_idcard: "身份证",
      user_manager_table_age: "年龄",
      user_manager_table_birth_date: "出生日期",
      user_manager_table_created_at: "注册时间",
      user_manager_table_option: "操作",
      user_manager_table_edit: "编辑",
      user_manager_table_delete: "删除",
      user_manager_table_camera: "采图",
      user_manager_table_view: "阅片",
      user_manager_table_prev: "上一页",
      user_manager_table_next: "下一页",
      user_manager_data_menu_0: "客户管理",
      user_manager_data_menu_1: "报告列表",
      user_manager_data_menu_2: "系统设置",
      user_manager_message_title: "提示",
      user_manager_message_content: "删除成功!",
      user_manager_alert_title: "提示",
      user_manager_alert_content: "是否要删除?",
      user_manager_alert_confirm: "确定",
      user_manager_message_connet_tips: "检查连接摄像头",
      user_manager_message_connet_tips_2: "摄像头序列号不匹配",

      set_device_title: "设备类型",
      set_use_datasheet: "使用教程",
      set_current_soft_version: "当前软件版本",
      set_new_soft_version: "最新软件版本",
      set_update_tips: "更新日志",
      set_table_index: "序号",
      set_table_name: "检查项目",
      set_table_evaluation: "红外热力评估结果",
      set_table_evaluation_tips: "保健或理疗建议",
      set_data_list_0: "诊断词典",
      set_data_list_1: "姿势配置",
      set_data_list_2: "设备参数配置",
      set_data_list_3: "在线教程",
      set_data_list_4: "关于",
      set_prompt_title: "新增诊断结果",
      set_prompt_content: "请输入诊断结果项目",
      set_prompt_confirm: "确定",
      set_prompt_cancel: "取消",
    }
  }
}

const i18n = new VueI18n({
  locale: 'zh', // 默认语言
  fallbackLocale: 'zh', // 备用语言
  messages
})

export default i18n
